<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>函数同样可以通过内置的JavaScript函数构造器（Function()）定义(第二种方法)</title>
</head>

<body>
    <p id="demo"></p>
    <script>
        var myFunction = function (a, b) { return a * b };
        document.getElementById("demo").innerHTML = myFunction(4, 3);
    </script>
</body>

</html>